package com.student.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Donate entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "Donate", schema = "dbo", catalog = "StudentManager")
public class Donate implements java.io.Serializable {

	// Fields

	private Long donateId;
	private String donor;
	private Timestamp donateTime;
	private String donateConent;

	// Constructors

	/** default constructor */
	public Donate() {
	}

	/** minimal constructor */
	public Donate(Long donateId, String donor, String donateConent) {
		this.donateId = donateId;
		this.donor = donor;
		this.donateConent = donateConent;
	}

	/** full constructor */
	public Donate(Long donateId, String donor, Timestamp donateTime,
			String donateConent) {
		this.donateId = donateId;
		this.donor = donor;
		this.donateTime = donateTime;
		this.donateConent = donateConent;
	}

	// Property accessors
	@Id
	@Column(name = "Donate_id", unique = true, nullable = false, precision = 18, scale = 0)
	@GeneratedValue
	public Long getDonateId() {
		return this.donateId;
	}

	public void setDonateId(Long donateId) {
		this.donateId = donateId;
	}

	@Column(name = "Donor", nullable = false, length = 50)
	public String getDonor() {
		return this.donor;
	}

	public void setDonor(String donor) {
		this.donor = donor;
	}

	@Column(name = "Donate_Time", length = 23)
	public Timestamp getDonateTime() {
		return this.donateTime;
	}

	public void setDonateTime(Timestamp donateTime) {
		this.donateTime = donateTime;
	}

	@Column(name = "Donate_Conent", nullable = false)
	public String getDonateConent() {
		return this.donateConent;
	}

	public void setDonateConent(String donateConent) {
		this.donateConent = donateConent;
	}

}